package com.wjp.oa.controller;

import com.mySpringMvc.stereotype.Controller;
import com.mySpringMvc.ui.ModalMap;
import com.mySpringMvc.web.bind.annotation.RequestMapping;
import com.mySpringMvc.web.bind.annotation.RequestMethod;

/**
 * @program: mySSM
 * @description: 登录控制器
 * @author:wjp
 * @create: 2025-02-13 23:12
 **/
@Controller("loginController")
public class LoginController {
    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public String login(ModalMap modalMap){
        modalMap.put("username","wjp");
        return "index";
    }
    @RequestMapping(value = "/loginSuccess",method = RequestMethod.GET)
    public String loginSuccess(ModalMap modalMap){
        modalMap.put("title","登陆成功，欢迎您！");
        return "loginSuccess";
    }
}
